{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "9849cca8",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "87442\n"
     ]
    }
   ],
   "source": [
    "### Q1\n",
    "import csv\n",
    "with open('gaze.csv','r') as csv_file:\n",
    "    reader = csv.reader(csv_file)\n",
    "    confidence = []\n",
    "    for row in reader:\n",
    "        if row[2] != 'confidence':\n",
    "            if float(row[2]) >= 0.9:\n",
    "                confidence.append(row[2])\n",
    "    print(len(confidence))\n",
    "    \n",
    "        \n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "b2786f9b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0.41027307219355996\n",
      "0.2095228849903554\n",
      "0.43831972720236484\n",
      "0.21608766176112518\n",
      "numbers for norm_pos_x: 121084\n",
      "numbers for norm_pos_y: 120135\n"
     ]
    }
   ],
   "source": [
    "### Q2\n",
    "import csv\n",
    "with open('gaze.csv','r') as csv_file:\n",
    "    reader = csv.reader(csv_file)\n",
    "    norm_pos_x = []\n",
    "    norm_pos_y = []\n",
    "    new_norm_pos_x = []\n",
    "    new_norm_pos_y = []\n",
    "    sum_norm_pos_x = 0\n",
    "    sum_norm_pos_y = 0\n",
    "    n_x = 0\n",
    "    n_y = 0\n",
    "    s_x = 0 \n",
    "    s_y = 0\n",
    "    for row in reader:\n",
    "        norm_pos_x.append(row[3])\n",
    "        norm_pos_y.append(row[4])\n",
    "\n",
    "    for i in norm_pos_x:\n",
    "          if i != \"norm_pos_x\":\n",
    "                sum_norm_pos_x += float(i)\n",
    "                n_x+=1 \n",
    "    mean_x = sum_norm_pos_x/n_x\n",
    "    for m in norm_pos_x:\n",
    "          if m != \"norm_pos_x\":\n",
    "                s_x += (float(m)-mean_x)**2\n",
    "    sigma_x = (s_x/n_x)**0.5  \n",
    "    print(mean_x)\n",
    "    print(sigma_x)\n",
    "    \n",
    "    for j in norm_pos_y:\n",
    "          if j != \"norm_pos_y\":\n",
    "                sum_norm_pos_y += float(j)\n",
    "                n_y+=1\n",
    "    mean_y = sum_norm_pos_y/n_y\n",
    "    print(mean_y)\n",
    "    for n in norm_pos_y:\n",
    "            if n != \"norm_pos_y\":\n",
    "                s_y += (float(n)-mean_y)**2\n",
    "    sigma_y = (s_y/n_y)**0.5\n",
    "    print(sigma_y)\n",
    "for i in norm_pos_x:\n",
    "    if i != \"norm_pos_x\":\n",
    "        if (float(i) >= mean_x-3*sigma_x) and (float(i) <= mean_x+3*sigma_x):\n",
    "                 new_norm_pos_x.append(i)\n",
    "print(\"numbers for norm_pos_x:\",len( new_norm_pos_x))\n",
    "\n",
    "for j in norm_pos_y:\n",
    "    if j != \"norm_pos_y\":\n",
    "        if (float(j) >= mean_y-3*sigma_y) and (float(j) <= mean_y+3*sigma_y):\n",
    "                 new_norm_pos_y.append(j)\n",
    "print(\"numbers for norm_pos_y:\",len( new_norm_pos_y))\n",
    "        \n",
    "        "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "985bfc06",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0           1970-01-02 00:29:10.776780+00:00\n",
      "1           1970-01-02 00:29:10.776787+00:00\n",
      "2           1970-01-02 00:29:10.779709+00:00\n",
      "3           1970-01-02 00:29:10.779759+00:00\n",
      "4           1970-01-02 00:29:10.787485+00:00\n",
      "                         ...                \n",
      "125259   1970-01-02 00:34:03.695600500+00:00\n",
      "125260   1970-01-02 00:34:03.697570500+00:00\n",
      "125261      1970-01-02 00:34:03.701580+00:00\n",
      "125262      1970-01-02 00:34:03.703608+00:00\n",
      "125263      1970-01-02 00:34:03.705574+00:00\n",
      "Name: gaze_timestamp, Length: 125264, dtype: datetime64[ns, UTC]\n"
     ]
    }
   ],
   "source": [
    "### Q3\n",
    "#普通方法\n",
    "# import csv\n",
    "# from datetime import datetime\n",
    "# import time\n",
    "# with open('gaze.csv','r') as csv_file:\n",
    "#     reader = csv.reader(csv_file)\n",
    "#     data = []\n",
    "#     result = []\n",
    "#     for row in reader:\n",
    "#         if row[0] !=\"gaze_timestamp\":\n",
    "#             data.append(row[0])\n",
    "#     for i in data:\n",
    "#              dt = datetime.fromtimestamp(float(i))\n",
    "#              otherStyleTime = dt.isoformat()+\"+0000\"\n",
    "#              print(otherStyleTime)     \n",
    "\n",
    "#调用pandas库\n",
    "import pandas as pd\n",
    "csv_file = pd.read_csv(\"gaze.csv\")\n",
    "# print(csv_file)\n",
    "csv_file[\"gaze_timestamp\"] = pd.to_datetime(csv_file[\"gaze_timestamp\"].values,unit = \"s\",utc=True)\n",
    "print(csv_file[\"gaze_timestamp\"])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "ad3f3978",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "428.9828767123288 Hz\n"
     ]
    }
   ],
   "source": [
    "### Q4\n",
    "import csv\n",
    "from datetime import datetime\n",
    "import time\n",
    "with open('gaze.csv','r') as csv_file:\n",
    "    reader = csv.reader(csv_file)\n",
    "    data = []\n",
    "    new_data = []\n",
    "    for row in reader:\n",
    "        if row[0] !=\"gaze_timestamp\":\n",
    "            data.append(row[0])\n",
    "    deltatime = datetime.fromtimestamp(float(data[-1]))-datetime.fromtimestamp(float(data[0]))\n",
    "    sec = deltatime.seconds\n",
    "    rate = (len(data)-1)/sec\n",
    "    print(rate,\"Hz\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "acfe0e02",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>world_index</th>\n",
       "      <th>confidence</th>\n",
       "      <th>norm_pos_x</th>\n",
       "      <th>norm_pos_y</th>\n",
       "      <th>gaze_point_3d_x</th>\n",
       "      <th>gaze_point_3d_y</th>\n",
       "      <th>gaze_point_3d_z</th>\n",
       "      <th>eye_center0_3d_x</th>\n",
       "      <th>eye_center0_3d_y</th>\n",
       "      <th>eye_center0_3d_z</th>\n",
       "      <th>gaze_normal0_x</th>\n",
       "      <th>gaze_normal0_y</th>\n",
       "      <th>gaze_normal0_z</th>\n",
       "      <th>eye_center1_3d_x</th>\n",
       "      <th>eye_center1_3d_y</th>\n",
       "      <th>eye_center1_3d_z</th>\n",
       "      <th>gaze_normal1_x</th>\n",
       "      <th>gaze_normal1_y</th>\n",
       "      <th>gaze_normal1_z</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>gaze_timestamp</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.770000+00:00</th>\n",
       "      <td>0.0</td>\n",
       "      <td>0.681690</td>\n",
       "      <td>0.437387</td>\n",
       "      <td>0.291906</td>\n",
       "      <td>-54.359308</td>\n",
       "      <td>103.262224</td>\n",
       "      <td>694.806989</td>\n",
       "      <td>-9.967464</td>\n",
       "      <td>14.998960</td>\n",
       "      <td>-20.037641</td>\n",
       "      <td>-0.061136</td>\n",
       "      <td>0.121556</td>\n",
       "      <td>0.984479</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.780000+00:00</th>\n",
       "      <td>1.0</td>\n",
       "      <td>0.584288</td>\n",
       "      <td>0.437978</td>\n",
       "      <td>0.307110</td>\n",
       "      <td>-42.813406</td>\n",
       "      <td>41.035419</td>\n",
       "      <td>10.103229</td>\n",
       "      <td>0.021691</td>\n",
       "      <td>14.999306</td>\n",
       "      <td>-20.025094</td>\n",
       "      <td>-0.014355</td>\n",
       "      <td>0.095046</td>\n",
       "      <td>0.987478</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.145087</td>\n",
       "      <td>0.230744</td>\n",
       "      <td>0.962137</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.790000+00:00</th>\n",
       "      <td>1.0</td>\n",
       "      <td>0.679988</td>\n",
       "      <td>0.494694</td>\n",
       "      <td>0.404853</td>\n",
       "      <td>1.979829</td>\n",
       "      <td>-20.040517</td>\n",
       "      <td>-292.334754</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.065145</td>\n",
       "      <td>0.027374</td>\n",
       "      <td>0.997500</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.150232</td>\n",
       "      <td>0.224797</td>\n",
       "      <td>0.962738</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.800000+00:00</th>\n",
       "      <td>1.0</td>\n",
       "      <td>0.810370</td>\n",
       "      <td>0.494951</td>\n",
       "      <td>0.404822</td>\n",
       "      <td>1.859581</td>\n",
       "      <td>-19.717564</td>\n",
       "      <td>-287.721641</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.066672</td>\n",
       "      <td>0.024890</td>\n",
       "      <td>0.997463</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.152198</td>\n",
       "      <td>0.229156</td>\n",
       "      <td>0.961410</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.810000+00:00</th>\n",
       "      <td>2.0</td>\n",
       "      <td>0.811268</td>\n",
       "      <td>0.494067</td>\n",
       "      <td>0.401053</td>\n",
       "      <td>2.204797</td>\n",
       "      <td>-20.676414</td>\n",
       "      <td>-290.218427</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.064772</td>\n",
       "      <td>0.024500</td>\n",
       "      <td>0.997599</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.151952</td>\n",
       "      <td>0.234021</td>\n",
       "      <td>0.960284</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.820000+00:00</th>\n",
       "      <td>2.0</td>\n",
       "      <td>0.893564</td>\n",
       "      <td>0.493605</td>\n",
       "      <td>0.399335</td>\n",
       "      <td>2.409602</td>\n",
       "      <td>-21.335674</td>\n",
       "      <td>-294.369777</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.063058</td>\n",
       "      <td>0.025140</td>\n",
       "      <td>0.997693</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.150413</td>\n",
       "      <td>0.234215</td>\n",
       "      <td>0.960478</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.830000+00:00</th>\n",
       "      <td>2.0</td>\n",
       "      <td>0.845289</td>\n",
       "      <td>0.493316</td>\n",
       "      <td>0.398559</td>\n",
       "      <td>2.512630</td>\n",
       "      <td>-21.451642</td>\n",
       "      <td>-293.704395</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.062845</td>\n",
       "      <td>0.027284</td>\n",
       "      <td>0.997650</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.151138</td>\n",
       "      <td>0.233532</td>\n",
       "      <td>0.960531</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.840000+00:00</th>\n",
       "      <td>2.5</td>\n",
       "      <td>0.841835</td>\n",
       "      <td>0.492696</td>\n",
       "      <td>0.398804</td>\n",
       "      <td>2.767211</td>\n",
       "      <td>-21.566487</td>\n",
       "      <td>-295.993985</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.061422</td>\n",
       "      <td>0.025921</td>\n",
       "      <td>0.997775</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.150791</td>\n",
       "      <td>0.233569</td>\n",
       "      <td>0.960577</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.850000+00:00</th>\n",
       "      <td>3.0</td>\n",
       "      <td>0.813601</td>\n",
       "      <td>0.492874</td>\n",
       "      <td>0.398257</td>\n",
       "      <td>2.711425</td>\n",
       "      <td>-21.777256</td>\n",
       "      <td>-297.274745</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.061335</td>\n",
       "      <td>0.026011</td>\n",
       "      <td>0.997778</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.149916</td>\n",
       "      <td>0.233780</td>\n",
       "      <td>0.960662</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.860000+00:00</th>\n",
       "      <td>3.0</td>\n",
       "      <td>0.893743</td>\n",
       "      <td>0.492674</td>\n",
       "      <td>0.398524</td>\n",
       "      <td>2.798286</td>\n",
       "      <td>-21.804480</td>\n",
       "      <td>-298.433361</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.060777</td>\n",
       "      <td>0.025339</td>\n",
       "      <td>0.997830</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.149606</td>\n",
       "      <td>0.233583</td>\n",
       "      <td>0.960758</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.870000+00:00</th>\n",
       "      <td>3.5</td>\n",
       "      <td>0.862389</td>\n",
       "      <td>0.492139</td>\n",
       "      <td>0.398724</td>\n",
       "      <td>3.005405</td>\n",
       "      <td>-21.779999</td>\n",
       "      <td>-298.687614</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.059995</td>\n",
       "      <td>0.025130</td>\n",
       "      <td>0.997882</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.150185</td>\n",
       "      <td>0.233384</td>\n",
       "      <td>0.960716</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.880000+00:00</th>\n",
       "      <td>4.0</td>\n",
       "      <td>0.892706</td>\n",
       "      <td>0.492170</td>\n",
       "      <td>0.398582</td>\n",
       "      <td>3.002544</td>\n",
       "      <td>-21.876653</td>\n",
       "      <td>-299.589471</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.059813</td>\n",
       "      <td>0.025071</td>\n",
       "      <td>0.997894</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.149704</td>\n",
       "      <td>0.233300</td>\n",
       "      <td>0.960812</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.890000+00:00</th>\n",
       "      <td>4.0</td>\n",
       "      <td>0.863562</td>\n",
       "      <td>0.491619</td>\n",
       "      <td>0.398328</td>\n",
       "      <td>3.227031</td>\n",
       "      <td>-22.022033</td>\n",
       "      <td>-300.826326</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.058765</td>\n",
       "      <td>0.024700</td>\n",
       "      <td>0.997966</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.149820</td>\n",
       "      <td>0.233547</td>\n",
       "      <td>0.960734</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.900000+00:00</th>\n",
       "      <td>4.0</td>\n",
       "      <td>0.850346</td>\n",
       "      <td>0.491440</td>\n",
       "      <td>0.398221</td>\n",
       "      <td>3.300165</td>\n",
       "      <td>-22.075103</td>\n",
       "      <td>-301.234553</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.058422</td>\n",
       "      <td>0.024264</td>\n",
       "      <td>0.997997</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.149847</td>\n",
       "      <td>0.233968</td>\n",
       "      <td>0.960627</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.910000+00:00</th>\n",
       "      <td>5.0</td>\n",
       "      <td>0.878314</td>\n",
       "      <td>0.491522</td>\n",
       "      <td>0.397330</td>\n",
       "      <td>3.278969</td>\n",
       "      <td>-22.336895</td>\n",
       "      <td>-302.166428</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.058302</td>\n",
       "      <td>0.025038</td>\n",
       "      <td>0.997985</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.149284</td>\n",
       "      <td>0.234162</td>\n",
       "      <td>0.960668</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.920000+00:00</th>\n",
       "      <td>5.0</td>\n",
       "      <td>0.864336</td>\n",
       "      <td>0.491490</td>\n",
       "      <td>0.396538</td>\n",
       "      <td>3.308013</td>\n",
       "      <td>-22.621279</td>\n",
       "      <td>-303.673027</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.057891</td>\n",
       "      <td>0.025402</td>\n",
       "      <td>0.997999</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.148602</td>\n",
       "      <td>0.234394</td>\n",
       "      <td>0.960717</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.930000+00:00</th>\n",
       "      <td>5.0</td>\n",
       "      <td>0.998242</td>\n",
       "      <td>0.491106</td>\n",
       "      <td>0.396239</td>\n",
       "      <td>3.462726</td>\n",
       "      <td>-22.723509</td>\n",
       "      <td>-304.165507</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.057256</td>\n",
       "      <td>0.025568</td>\n",
       "      <td>0.998032</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.148867</td>\n",
       "      <td>0.234479</td>\n",
       "      <td>0.960655</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.940000+00:00</th>\n",
       "      <td>5.6</td>\n",
       "      <td>0.822405</td>\n",
       "      <td>0.491349</td>\n",
       "      <td>0.396675</td>\n",
       "      <td>3.365049</td>\n",
       "      <td>-22.609107</td>\n",
       "      <td>-303.908032</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.057648</td>\n",
       "      <td>0.025339</td>\n",
       "      <td>0.998015</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.148678</td>\n",
       "      <td>0.234164</td>\n",
       "      <td>0.960761</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.950000+00:00</th>\n",
       "      <td>6.0</td>\n",
       "      <td>0.837220</td>\n",
       "      <td>0.491234</td>\n",
       "      <td>0.397143</td>\n",
       "      <td>3.410404</td>\n",
       "      <td>-22.507586</td>\n",
       "      <td>-303.923452</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.057488</td>\n",
       "      <td>0.024511</td>\n",
       "      <td>0.998045</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.148821</td>\n",
       "      <td>0.234277</td>\n",
       "      <td>0.960712</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1970-01-02 00:29:10.960000+00:00</th>\n",
       "      <td>6.0</td>\n",
       "      <td>0.860573</td>\n",
       "      <td>0.490922</td>\n",
       "      <td>0.397230</td>\n",
       "      <td>3.540623</td>\n",
       "      <td>-22.548167</td>\n",
       "      <td>-304.725183</td>\n",
       "      <td>20.000000</td>\n",
       "      <td>15.000000</td>\n",
       "      <td>-20.000000</td>\n",
       "      <td>0.056879</td>\n",
       "      <td>0.024088</td>\n",
       "      <td>0.998090</td>\n",
       "      <td>-39.934928</td>\n",
       "      <td>14.997919</td>\n",
       "      <td>-20.075283</td>\n",
       "      <td>-0.148850</td>\n",
       "      <td>0.234256</td>\n",
       "      <td>0.960712</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                  world_index  confidence  norm_pos_x  \\\n",
       "gaze_timestamp                                                          \n",
       "1970-01-02 00:29:10.770000+00:00          0.0    0.681690    0.437387   \n",
       "1970-01-02 00:29:10.780000+00:00          1.0    0.584288    0.437978   \n",
       "1970-01-02 00:29:10.790000+00:00          1.0    0.679988    0.494694   \n",
       "1970-01-02 00:29:10.800000+00:00          1.0    0.810370    0.494951   \n",
       "1970-01-02 00:29:10.810000+00:00          2.0    0.811268    0.494067   \n",
       "1970-01-02 00:29:10.820000+00:00          2.0    0.893564    0.493605   \n",
       "1970-01-02 00:29:10.830000+00:00          2.0    0.845289    0.493316   \n",
       "1970-01-02 00:29:10.840000+00:00          2.5    0.841835    0.492696   \n",
       "1970-01-02 00:29:10.850000+00:00          3.0    0.813601    0.492874   \n",
       "1970-01-02 00:29:10.860000+00:00          3.0    0.893743    0.492674   \n",
       "1970-01-02 00:29:10.870000+00:00          3.5    0.862389    0.492139   \n",
       "1970-01-02 00:29:10.880000+00:00          4.0    0.892706    0.492170   \n",
       "1970-01-02 00:29:10.890000+00:00          4.0    0.863562    0.491619   \n",
       "1970-01-02 00:29:10.900000+00:00          4.0    0.850346    0.491440   \n",
       "1970-01-02 00:29:10.910000+00:00          5.0    0.878314    0.491522   \n",
       "1970-01-02 00:29:10.920000+00:00          5.0    0.864336    0.491490   \n",
       "1970-01-02 00:29:10.930000+00:00          5.0    0.998242    0.491106   \n",
       "1970-01-02 00:29:10.940000+00:00          5.6    0.822405    0.491349   \n",
       "1970-01-02 00:29:10.950000+00:00          6.0    0.837220    0.491234   \n",
       "1970-01-02 00:29:10.960000+00:00          6.0    0.860573    0.490922   \n",
       "\n",
       "                                  norm_pos_y  gaze_point_3d_x  \\\n",
       "gaze_timestamp                                                  \n",
       "1970-01-02 00:29:10.770000+00:00    0.291906       -54.359308   \n",
       "1970-01-02 00:29:10.780000+00:00    0.307110       -42.813406   \n",
       "1970-01-02 00:29:10.790000+00:00    0.404853         1.979829   \n",
       "1970-01-02 00:29:10.800000+00:00    0.404822         1.859581   \n",
       "1970-01-02 00:29:10.810000+00:00    0.401053         2.204797   \n",
       "1970-01-02 00:29:10.820000+00:00    0.399335         2.409602   \n",
       "1970-01-02 00:29:10.830000+00:00    0.398559         2.512630   \n",
       "1970-01-02 00:29:10.840000+00:00    0.398804         2.767211   \n",
       "1970-01-02 00:29:10.850000+00:00    0.398257         2.711425   \n",
       "1970-01-02 00:29:10.860000+00:00    0.398524         2.798286   \n",
       "1970-01-02 00:29:10.870000+00:00    0.398724         3.005405   \n",
       "1970-01-02 00:29:10.880000+00:00    0.398582         3.002544   \n",
       "1970-01-02 00:29:10.890000+00:00    0.398328         3.227031   \n",
       "1970-01-02 00:29:10.900000+00:00    0.398221         3.300165   \n",
       "1970-01-02 00:29:10.910000+00:00    0.397330         3.278969   \n",
       "1970-01-02 00:29:10.920000+00:00    0.396538         3.308013   \n",
       "1970-01-02 00:29:10.930000+00:00    0.396239         3.462726   \n",
       "1970-01-02 00:29:10.940000+00:00    0.396675         3.365049   \n",
       "1970-01-02 00:29:10.950000+00:00    0.397143         3.410404   \n",
       "1970-01-02 00:29:10.960000+00:00    0.397230         3.540623   \n",
       "\n",
       "                                  gaze_point_3d_y  gaze_point_3d_z  \\\n",
       "gaze_timestamp                                                       \n",
       "1970-01-02 00:29:10.770000+00:00       103.262224       694.806989   \n",
       "1970-01-02 00:29:10.780000+00:00        41.035419        10.103229   \n",
       "1970-01-02 00:29:10.790000+00:00       -20.040517      -292.334754   \n",
       "1970-01-02 00:29:10.800000+00:00       -19.717564      -287.721641   \n",
       "1970-01-02 00:29:10.810000+00:00       -20.676414      -290.218427   \n",
       "1970-01-02 00:29:10.820000+00:00       -21.335674      -294.369777   \n",
       "1970-01-02 00:29:10.830000+00:00       -21.451642      -293.704395   \n",
       "1970-01-02 00:29:10.840000+00:00       -21.566487      -295.993985   \n",
       "1970-01-02 00:29:10.850000+00:00       -21.777256      -297.274745   \n",
       "1970-01-02 00:29:10.860000+00:00       -21.804480      -298.433361   \n",
       "1970-01-02 00:29:10.870000+00:00       -21.779999      -298.687614   \n",
       "1970-01-02 00:29:10.880000+00:00       -21.876653      -299.589471   \n",
       "1970-01-02 00:29:10.890000+00:00       -22.022033      -300.826326   \n",
       "1970-01-02 00:29:10.900000+00:00       -22.075103      -301.234553   \n",
       "1970-01-02 00:29:10.910000+00:00       -22.336895      -302.166428   \n",
       "1970-01-02 00:29:10.920000+00:00       -22.621279      -303.673027   \n",
       "1970-01-02 00:29:10.930000+00:00       -22.723509      -304.165507   \n",
       "1970-01-02 00:29:10.940000+00:00       -22.609107      -303.908032   \n",
       "1970-01-02 00:29:10.950000+00:00       -22.507586      -303.923452   \n",
       "1970-01-02 00:29:10.960000+00:00       -22.548167      -304.725183   \n",
       "\n",
       "                                  eye_center0_3d_x  eye_center0_3d_y  \\\n",
       "gaze_timestamp                                                         \n",
       "1970-01-02 00:29:10.770000+00:00         -9.967464         14.998960   \n",
       "1970-01-02 00:29:10.780000+00:00          0.021691         14.999306   \n",
       "1970-01-02 00:29:10.790000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.800000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.810000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.820000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.830000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.840000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.850000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.860000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.870000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.880000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.890000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.900000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.910000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.920000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.930000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.940000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.950000+00:00         20.000000         15.000000   \n",
       "1970-01-02 00:29:10.960000+00:00         20.000000         15.000000   \n",
       "\n",
       "                                  eye_center0_3d_z  gaze_normal0_x  \\\n",
       "gaze_timestamp                                                       \n",
       "1970-01-02 00:29:10.770000+00:00        -20.037641       -0.061136   \n",
       "1970-01-02 00:29:10.780000+00:00        -20.025094       -0.014355   \n",
       "1970-01-02 00:29:10.790000+00:00        -20.000000        0.065145   \n",
       "1970-01-02 00:29:10.800000+00:00        -20.000000        0.066672   \n",
       "1970-01-02 00:29:10.810000+00:00        -20.000000        0.064772   \n",
       "1970-01-02 00:29:10.820000+00:00        -20.000000        0.063058   \n",
       "1970-01-02 00:29:10.830000+00:00        -20.000000        0.062845   \n",
       "1970-01-02 00:29:10.840000+00:00        -20.000000        0.061422   \n",
       "1970-01-02 00:29:10.850000+00:00        -20.000000        0.061335   \n",
       "1970-01-02 00:29:10.860000+00:00        -20.000000        0.060777   \n",
       "1970-01-02 00:29:10.870000+00:00        -20.000000        0.059995   \n",
       "1970-01-02 00:29:10.880000+00:00        -20.000000        0.059813   \n",
       "1970-01-02 00:29:10.890000+00:00        -20.000000        0.058765   \n",
       "1970-01-02 00:29:10.900000+00:00        -20.000000        0.058422   \n",
       "1970-01-02 00:29:10.910000+00:00        -20.000000        0.058302   \n",
       "1970-01-02 00:29:10.920000+00:00        -20.000000        0.057891   \n",
       "1970-01-02 00:29:10.930000+00:00        -20.000000        0.057256   \n",
       "1970-01-02 00:29:10.940000+00:00        -20.000000        0.057648   \n",
       "1970-01-02 00:29:10.950000+00:00        -20.000000        0.057488   \n",
       "1970-01-02 00:29:10.960000+00:00        -20.000000        0.056879   \n",
       "\n",
       "                                  gaze_normal0_y  gaze_normal0_z  \\\n",
       "gaze_timestamp                                                     \n",
       "1970-01-02 00:29:10.770000+00:00        0.121556        0.984479   \n",
       "1970-01-02 00:29:10.780000+00:00        0.095046        0.987478   \n",
       "1970-01-02 00:29:10.790000+00:00        0.027374        0.997500   \n",
       "1970-01-02 00:29:10.800000+00:00        0.024890        0.997463   \n",
       "1970-01-02 00:29:10.810000+00:00        0.024500        0.997599   \n",
       "1970-01-02 00:29:10.820000+00:00        0.025140        0.997693   \n",
       "1970-01-02 00:29:10.830000+00:00        0.027284        0.997650   \n",
       "1970-01-02 00:29:10.840000+00:00        0.025921        0.997775   \n",
       "1970-01-02 00:29:10.850000+00:00        0.026011        0.997778   \n",
       "1970-01-02 00:29:10.860000+00:00        0.025339        0.997830   \n",
       "1970-01-02 00:29:10.870000+00:00        0.025130        0.997882   \n",
       "1970-01-02 00:29:10.880000+00:00        0.025071        0.997894   \n",
       "1970-01-02 00:29:10.890000+00:00        0.024700        0.997966   \n",
       "1970-01-02 00:29:10.900000+00:00        0.024264        0.997997   \n",
       "1970-01-02 00:29:10.910000+00:00        0.025038        0.997985   \n",
       "1970-01-02 00:29:10.920000+00:00        0.025402        0.997999   \n",
       "1970-01-02 00:29:10.930000+00:00        0.025568        0.998032   \n",
       "1970-01-02 00:29:10.940000+00:00        0.025339        0.998015   \n",
       "1970-01-02 00:29:10.950000+00:00        0.024511        0.998045   \n",
       "1970-01-02 00:29:10.960000+00:00        0.024088        0.998090   \n",
       "\n",
       "                                  eye_center1_3d_x  eye_center1_3d_y  \\\n",
       "gaze_timestamp                                                         \n",
       "1970-01-02 00:29:10.770000+00:00               NaN               NaN   \n",
       "1970-01-02 00:29:10.780000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.790000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.800000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.810000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.820000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.830000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.840000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.850000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.860000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.870000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.880000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.890000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.900000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.910000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.920000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.930000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.940000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.950000+00:00        -39.934928         14.997919   \n",
       "1970-01-02 00:29:10.960000+00:00        -39.934928         14.997919   \n",
       "\n",
       "                                  eye_center1_3d_z  gaze_normal1_x  \\\n",
       "gaze_timestamp                                                       \n",
       "1970-01-02 00:29:10.770000+00:00               NaN             NaN   \n",
       "1970-01-02 00:29:10.780000+00:00        -20.075283       -0.145087   \n",
       "1970-01-02 00:29:10.790000+00:00        -20.075283       -0.150232   \n",
       "1970-01-02 00:29:10.800000+00:00        -20.075283       -0.152198   \n",
       "1970-01-02 00:29:10.810000+00:00        -20.075283       -0.151952   \n",
       "1970-01-02 00:29:10.820000+00:00        -20.075283       -0.150413   \n",
       "1970-01-02 00:29:10.830000+00:00        -20.075283       -0.151138   \n",
       "1970-01-02 00:29:10.840000+00:00        -20.075283       -0.150791   \n",
       "1970-01-02 00:29:10.850000+00:00        -20.075283       -0.149916   \n",
       "1970-01-02 00:29:10.860000+00:00        -20.075283       -0.149606   \n",
       "1970-01-02 00:29:10.870000+00:00        -20.075283       -0.150185   \n",
       "1970-01-02 00:29:10.880000+00:00        -20.075283       -0.149704   \n",
       "1970-01-02 00:29:10.890000+00:00        -20.075283       -0.149820   \n",
       "1970-01-02 00:29:10.900000+00:00        -20.075283       -0.149847   \n",
       "1970-01-02 00:29:10.910000+00:00        -20.075283       -0.149284   \n",
       "1970-01-02 00:29:10.920000+00:00        -20.075283       -0.148602   \n",
       "1970-01-02 00:29:10.930000+00:00        -20.075283       -0.148867   \n",
       "1970-01-02 00:29:10.940000+00:00        -20.075283       -0.148678   \n",
       "1970-01-02 00:29:10.950000+00:00        -20.075283       -0.148821   \n",
       "1970-01-02 00:29:10.960000+00:00        -20.075283       -0.148850   \n",
       "\n",
       "                                  gaze_normal1_y  gaze_normal1_z  \n",
       "gaze_timestamp                                                    \n",
       "1970-01-02 00:29:10.770000+00:00             NaN             NaN  \n",
       "1970-01-02 00:29:10.780000+00:00        0.230744        0.962137  \n",
       "1970-01-02 00:29:10.790000+00:00        0.224797        0.962738  \n",
       "1970-01-02 00:29:10.800000+00:00        0.229156        0.961410  \n",
       "1970-01-02 00:29:10.810000+00:00        0.234021        0.960284  \n",
       "1970-01-02 00:29:10.820000+00:00        0.234215        0.960478  \n",
       "1970-01-02 00:29:10.830000+00:00        0.233532        0.960531  \n",
       "1970-01-02 00:29:10.840000+00:00        0.233569        0.960577  \n",
       "1970-01-02 00:29:10.850000+00:00        0.233780        0.960662  \n",
       "1970-01-02 00:29:10.860000+00:00        0.233583        0.960758  \n",
       "1970-01-02 00:29:10.870000+00:00        0.233384        0.960716  \n",
       "1970-01-02 00:29:10.880000+00:00        0.233300        0.960812  \n",
       "1970-01-02 00:29:10.890000+00:00        0.233547        0.960734  \n",
       "1970-01-02 00:29:10.900000+00:00        0.233968        0.960627  \n",
       "1970-01-02 00:29:10.910000+00:00        0.234162        0.960668  \n",
       "1970-01-02 00:29:10.920000+00:00        0.234394        0.960717  \n",
       "1970-01-02 00:29:10.930000+00:00        0.234479        0.960655  \n",
       "1970-01-02 00:29:10.940000+00:00        0.234164        0.960761  \n",
       "1970-01-02 00:29:10.950000+00:00        0.234277        0.960712  \n",
       "1970-01-02 00:29:10.960000+00:00        0.234256        0.960712  "
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "### Q5  使用pandas模块\n",
    "import pandas as pd\n",
    "csv_file = pd.read_csv(\"gaze.csv\")\n",
    "# print(csv_file)\n",
    "csv_file[\"gaze_timestamp\"] = pd.to_datetime(csv_file[\"gaze_timestamp\"].values,unit = \"s\",utc=True)\n",
    "csv_file.index = pd.to_datetime(csv_file.gaze_timestamp.values)\n",
    "csv_file.resample(\"0.01S\",on = \"gaze_timestamp\").mean().head(20)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "62565b99",
   "metadata": {},
   "outputs": [
    {
     "ename": "ValueError",
     "evalue": "'88150.77678' is not in list",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mValueError\u001b[0m                                Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-25-8181cc13813d>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m     17\u001b[0m \u001b[1;31m#     print(new_time)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m     18\u001b[0m     \u001b[1;32mfor\u001b[0m \u001b[0mj\u001b[0m \u001b[1;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;36m20\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m---> 19\u001b[1;33m         \u001b[0mn_index\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mappend\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mall_data\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mindex\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstr\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mnew_time\u001b[0m\u001b[1;33m[\u001b[0m\u001b[0mj\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m     20\u001b[0m     \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mn_index\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mValueError\u001b[0m: '88150.77678' is not in list"
     ]
    }
   ],
   "source": [
    "### 第五题使用每增加0.01秒直接取样的方法貌似行不通，因为有的数据不在其中，所以前面使用pandas模块的方法\n",
    "import csv\n",
    "from datetime import datetime\n",
    "import time\n",
    "with open('gaze.csv','r') as csv_file:\n",
    "    reader = csv.reader(csv_file)\n",
    "    all_data = []\n",
    "    data = []\n",
    "    new_time = []\n",
    "    n_index = []\n",
    "    for row in reader:\n",
    "        if row[0] !=\"gaze_timestamp\":\n",
    "            all_data.append(row)\n",
    "            data.append(row[0])\n",
    "    for i in range(len(data)):\n",
    "        new_time.append(float(data[0])+0.01*i)\n",
    "#     print(new_time)\n",
    "    for j in range(20):\n",
    "        n_index.append(all_data.index(str(new_time[j])))\n",
    "    print(n_index)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5efcfe3c",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1de507ca",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1f71796a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
